package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.YqgRowNumberMapper;
import com.ruoyi.project.domain.YqgRowNumber;
import com.ruoyi.project.service.IYqgRowNumberService;

/**
 * 搓澡排号Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-17
 */
@Service
public class YqgRowNumberServiceImpl implements IYqgRowNumberService 
{
    @Autowired
    private YqgRowNumberMapper yqgRowNumberMapper;

    /**
     * 查询搓澡排号
     * 
     * @param ID 搓澡排号主键
     * @return 搓澡排号
     */
    @Override
    public YqgRowNumber selectYqgRowNumberByID(Long ID)
    {
        return yqgRowNumberMapper.selectYqgRowNumberByID(ID);
    }

    /**
     * 查询搓澡排号列表
     * 
     * @param yqgRowNumber 搓澡排号
     * @return 搓澡排号
     */
    @Override
    public List<YqgRowNumber> selectYqgRowNumberList(YqgRowNumber yqgRowNumber)
    {
        return yqgRowNumberMapper.selectYqgRowNumberList(yqgRowNumber);
    }

    /**
     * 新增搓澡排号
     * 
     * @param yqgRowNumber 搓澡排号
     * @return 结果
     */
    @Override
    public int insertYqgRowNumber(YqgRowNumber yqgRowNumber)
    {
        return yqgRowNumberMapper.insertYqgRowNumber(yqgRowNumber);
    }

    /**
     * 修改搓澡排号
     * 
     * @param yqgRowNumber 搓澡排号
     * @return 结果
     */
    @Override
    public int updateYqgRowNumber(YqgRowNumber yqgRowNumber)
    {
        return yqgRowNumberMapper.updateYqgRowNumber(yqgRowNumber);
    }

    /**
     * 批量删除搓澡排号
     * 
     * @param IDs 需要删除的搓澡排号主键
     * @return 结果
     */
    @Override
    public int deleteYqgRowNumberByIDs(Long[] IDs)
    {
        return yqgRowNumberMapper.deleteYqgRowNumberByIDs(IDs);
    }

    /**
     * 删除搓澡排号信息
     * 
     * @param ID 搓澡排号主键
     * @return 结果
     */
    @Override
    public int deleteYqgRowNumberByID(Long ID)
    {
        return yqgRowNumberMapper.deleteYqgRowNumberByID(ID);
    }
}
